import React, { FC } from 'react'

//antd固丁
import { BackTop } from 'antd';

interface Styled {
    height: number,
    width: number,
    lineHeight: string,
    borderRadius: number,
    backgroundColor: string,
    color: string,
    textAlign: string,
    fontSize: number
}


const ToTop: FC = () => {
    const style:any = {
        height: 40,
        width: 40,
        lineHeight: '40px',
        borderRadius: 4,
        backgroundColor: '#1088e9',
        color: '#fff',
        textAlign: 'center',
        fontSize: 14,
    };

    return (
        <div>
            <BackTop visibilityHeight={200}>
                <div style={style}>
                    UP
                </div>
            </BackTop>
        </div>
    )
}


export default ToTop